<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app{
            padding: 50px;
        }
        .banner{
            width: 600px;
            height: 150px;
            border-radius: 20px;
            box-shadow: 5px 5px 10px #888888;
            font-size: 32px;
            font-weight: bolder;
            text-align: center;
            line-height: 150px;
            background-color: #033592;
            color: white;
            margin: 0px auto;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="banner">
            {{text | transformFilter}}
        </div>
    </div>
    <script src="js/vue.js"></script>
    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                text:"actions speak louder than words."
            },
            filters:{
                transformFilter:function(val){
                    var strs = val.split(" ")
                    var result = ""
                    for(var i = 0;i<strs.length;i++){
                        result+=strs[i].charAt(0).toUpperCase()+strs[i].substring(1)+" ";
                    }
                    return result;
                }
            }
        })
    </script>
</body>
</html>